import request from '@/utils/request'

export function getTrainPageInfos(data) {
  return request({
    url: '/trainInfo/getPageInfos',
    method: 'GET',
    params: data
  })
}

export function deleteDevice(trainId) {
  return request({
    url: '/trainInfo/deleteTrainInfo',
    method: 'POST',
    params: { trainId: trainId }
  })
}

export function createOrUpdate(data) {
  return request({
    url: '/trainInfo/addOrUpdateTrainInfor',
    method: 'POST',
    data: data
  })
}
